using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.Receptionist.com.core.dto;
using Project_Schedule.Domain.Receptionist.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.Receptionist.com.core.Controller;
[ApiController]
[Route("api/[Controller]/[action]")]
public class System_ChangeRefuseUserController:ControllerBase
{
    private readonly ISystemChangeRefuseUser _systemChangeRefuseUser;

    public System_ChangeRefuseUserController(ISystemChangeRefuseUser systemChangeRefuseUser)
    {
        _systemChangeRefuseUser = systemChangeRefuseUser;
    }

    [HttpPost]
    public async Task<JRequest> ChangeUser(RegisterUser dto) =>
        await _systemChangeRefuseUser.ChangeMessage(dto);
}